package com.mogujie.tt.ui.activity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.cloud.ui.CloudDiskMainActivity;
import com.mogujie.tt.R;
import com.mogujie.tt.ui.base.QZBaseActivity;
import com.readystatesoftware.systembartint.SystemBarTintManager;

/**
 * Created by user on 2015/11/4.
 */
public class SxunActivity extends QZBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LayoutInflater.from(this).inflate(R.layout.tt_activity_sxuninfo, topContentView);

        showTopInformation("时迅云");


        findViewById(R.id.rl_switch_notification).setOnClickListener(new View.OnClickListener() {//云盘
            @Override
            public void onClick(View v) {//云盘

             //   startActivity(new Intent(SxunActivity.this, CloudDiskMainActivity.class));
                startActivity(new Intent(SxunActivity.this, com.oncliedisk.administrator.ui.MainActivity.class));
            }
        });

        findViewById(R.id.rl_switch_cloud_learning).setOnClickListener(new View.OnClickListener() {//电子书包
            @Override
            public void onClick(View view) {
                startActivity(new Intent(SxunActivity.this,ElectronicSchoolBagActivity.class));
            }
        });

        findViewById(R.id.rl_switch_speaker).setOnClickListener(new View.OnClickListener() {//云电脑
            @Override
            public void onClick(View view) {
                startActivity(new Intent(SxunActivity.this,CloudComputerActivity.class));
            }
        });

        findViewById(R.id.rl_switch_cloud_office).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setAction("quanzi.intent.action.WEBVIEW");
                Bundle bundle=new Bundle();
                bundle.putString("webViewLoadUrl","http://qz.atmart.cn:4025/sxuncloud/OA/main.html");
                intent.putExtras(bundle);
                //intent.addCategory(Intent.CATEGORY_DEFAULT);//不加这行也行，因为这个值默认就是Intent.CATEGORY_DEFAULT
                startActivity(intent);
            }
        });

    }

    /**
     * 显示顶部信息
     */
    private void showTopInformation(String test){
        if(test == null){
            return;
        }
        setTopBarDisplay();
        setCenterText(test);
    }


    public void onClickExit(View view){
        finish();
    }

}
